<?php

namespace app\student\controller;

use app\student\model\StudentLoginModel;
use think\App;
use think\Db;

class StudentLogin extends \think\Controller
{

    //构造方法
    public function __construct(App $app = null)
    {
        parent::__construct($app);
        //提取出学生信息出来
        $result = session('s_name');

        if($result)
        {
            return $result;
        }else{

            //echo "<a href='/student/Student_Login/studentLogin'>登录过期，请重新登录</a>";die;
            //echo "登录失败";
            //return $this->error('登录失败','/student/Student_Login/studentLogin\'');
            $this->redirect('/student/Login/studentLogin');
//            var_dump($result);die;
//            return $this->fetch('Login/studentLogin');

        }
    }





}